*,
html,
body,
#__nuxt,
#__layout,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul,
li,
a {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html,
body,
#__nuxt,
#__layout {
  height: 100%;
  background: #fff;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: #606f7b;
  // font-size: 18px;
  font-weight: bold;

  &:hover {
    text-decoration: none;
    color: #525251;
  }
}

ol,
ul,
li {
  list-style: none;
}

/* 图片高清处理 */
img {
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  mix-blend-mode: multiply;
  object-fit: cover;
  -o-object-fit: cover;
}

/* 3D字体 */
.font-3d {
  text-shadow: 1px 1px #aac4d9, 2px 2px #aac4d9, 3px 3px #aac4d9;
  // transform: skew(-5deg, -5deg) rotate(5deg);
}

/* 盒子模型初始化 */
.el-box-init {
  box-shadow: 8px 14px 38px #b1b1b1;
  border-radius: 10px;
}

/* 背景颜色 */
.el-bkgd-white {
  background: #ffffff;
}

/* 最大宽 */
.el-mx-1200 {
  max-width: 1200px;
  margin: 0 auto;
}

.el-mx-1000 {
  max-width: 1000px;
  margin: 0 auto;
}

.el-mx-800 {
  max-width: 800px;
  margin: 0 auto;
}

.el-mx-600 {
  max-width: 600px;
  margin: 0 auto;
}

.el-mx-370 {
  max-width: 370px;
  margin: 0 auto;
}

/* 内边框 */
.el-pd-20 {
  padding: 20px;
}

.el-pd-user {
  height: 100%;
  padding: 10% 20px;
}

/* 外边框 */
.el-mg-20 {
  margin: 20px;
}

/* 下划线 */
.el-down-line {
  color: #fff;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 15px;

  &::before {
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    background: gold;
  }
}

/* hover效果 */
.hvr-shadow {
  &:hover {
    box-shadow: 2px 2px 15px #d2e7fd;
    -webkit-box-shadow: 2px 2px 15px #d2e7fd;
  }
}

.page-container {
  height: 100%;
  display: flex;
  flex-direction: column;

  main {
    flex: 1;
  }
}

// 横幅
.banner-section {
  position: relative;

  .text-box {
    position: absolute;
    max-width: 900px;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 20px;

    .text-item {
      display: flex;
      flex-direction: column;
      color: #fff;
      text-align: center;
      line-height: 30px;

      h2 {
        font-size: 34px;
        white-space: nowrap;
      }
    }
  }
}

/* 分页样式 */
.el-pagination {
  text-align: center;
  margin: 40px 0 15px;

  i,
  li {
    margin: 4px;
    background-color: #fff;
    width: 44px;
    border-radius: 50%;
    height: 44px;
    line-height: 40px;
    font-size: 16px !important;
    -webkit-transition: none;
    transition: none;

    @media (max-width: 768px) {
      width: 34px;
      height: 34px;
      line-height: 30px;
      margin: 2px;
    }
  }

  li {
    border: 2px solid #b0bac3 !important;
    color: #606f7b;

    &:hover {
      background-color: #409eff;
      border: 2px solid #409eff !important;
      color: #fff;
    }
  }

  li.active {
    background-color: #409eff;
    border: 2px solid #409eff !important;
    color: #fff;
  }
}

/* 登陆、注册 */
.user-login-container {
  padding: 15px;

  .title {
    border-bottom: 1px solid #e8eaec;
    padding: 14px 15px;
    line-height: 1;
    font-size: 14px;
    color: #17233d;
    font-weight: 700;
  }

  .el-form {
    padding: 15px 15px 0;
  }

  p {
    text-align: center;
    font-size: 14px;

    a {
      color: #2d8cf0;

      &:hover {
        opacity: 0.8;
      }
    }
  }
}

/* 找回密码、用户设置 */
.set-container {
  padding: 1.5rem;

  .set-head {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eaec;

    .title {
      margin-left: 10px;
    }
  }

  .set-body {
    .desc {
      margin-left: 10px;
    }
  }
}

/* 上传组件 */
.avatar-uploader {
  .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    &:hover {
      border-color: #409eff;
    }
  }

  .avatar-uploader-icon {
    font-size: 30px;
    color: #8c939d;
    width: 120px;
    height: 120px;
    line-height: 120px;
    text-align: center;
  }
}

.avatar-box {
  display: block;
  width: 120px;
  height: 120px;
  position: relative;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;

  .avatar {
    width: 120px;
    height: 120px;
    display: block;
    object-fit: cover;
  }

  .el-icon-close {
    position: absolute;
    right: -5px;
    top: -5px;
    background: #f56c6c;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
  }
}
